********************************************************************************
*							MASTER ANALYSIS DO FILE
********************************************************************************

/**
This do file runs all analysis for the paper.
Set working directory to /analysis_code directory.
**/

version 17.0
clear all
set more off
cap mkdir ../estimates 	// estimated results are saved to folder "estimates"
cap mkdir ../output 	// figures and tables are outputted to folder "output"

do "fig1_distance.do" 
do "fig2_main.do" 
do "fig3_heterogeneity.do" 
do "fig4_media.do" 
do "fig5_weapon.do" 

do "table1_sumstats.do" 
do "table2_robustness.do" 
do "table3_referenda.do" 

do "figA1_homicides.do" 
do "figA2_extended.do" 
do "figA3_validation.do" 
do "figA4_weapon_nopop.do" 
do "figA5_year.do" 
do "figA6_distance_altdist.do" 
do "figA7_media_altdist.do" 

